x, y, z = map(int, input().split())
sum_of_numbers = x + y + z
average_of_numbers = sum_of_numbers / 3
print(sum_of_numbers)
print("{:.2f}".format(average_of_numbers))


